import request from "../utils/request";

// 创建请求商品列表的api
export const getGoodsListDataApi = (params) => request.get('/pro/list', {
    params
})

// 更改商品是否秒杀的api
export const updateGoodsIsseckillFlagApi = (params) => request.post('/pro/updateFlag', params, { silence: true })

// 获取商品分类的api
export const getGoodsCategoryListApi = () => request.get('/pro/getCategory')

// 获取筛选商品列表的api
export const getSearchGoodsListDataApi = (params) => request.post('/pro/searchPro',params, { silence:true })
